var mongoose = require('mongoose'),
materializedPlugin=require('mongoose-materialized'),
Schema=mongoose.Schema;

var CateSchema=new Schema({//定义分类
    title:{type:String},
    children:[],//存储子节点
    value:'',//新增博客时的标签树唯一值
    label:''
});

CateSchema.plugin(materializedPlugin);
module.exports=mongoose.model('Cate2',CateSchema,'cate2');//Category
